<?php
/* 
 * Interface para todas las implementaciones de Base de datos.
 */

interface Ftl_IDataBase {

	public function connect();
	public function close();

	public function query($sql, $data = array());
	public function execute();
        public function insert($table,$data,$returnId=true);
        public function update($table,$where,$data,$in=false);
        public function delete($table,$where,$data,$in=false);


        //Funciones de agregado
        public function max($column,$table,$where);
	public function count($column,$table,$where);
        public function sum($column,$table,$where);
}
?>
